﻿<cfsilent>
	<cfscript>
		
		stringAdvice = getProperty("serviceFactory").getBean("stringAdvice");
		dictAdvice = getProperty("serviceFactory").getBean("senateDictionaryAdvice");
		
		event.setArg("pageTitle", "教学质量评价 - 评教指标体系");
		
		currentTab = event.getArg("TabID", "labList");
		
		/* 评价体系列表 */
		sql = "SELECT 
				es_id, es_name, es_model 
				FROM t_evaluate_system 
				ORDER BY es_name ";
		
		queryObj = new Query( datasource=application.dnsSlave );

		rs_evs = queryObj.execute( sql=sql ).getResult();
		
		
		passArgs = structNew();
		

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('DEFAULT_EVENT')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">教学质量评价</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 application"></i>评价指标体系
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				<div class="UItab">
					<div class="tabLables">
						<span <cfif currentTab eq "labList">class="active"</cfif> id="labList" tabTarget="List">指标体系</span>
					</div>
				</div>
				<script language="javascript" type="text/javascript">
					//<![CDATA[
					<!--
					$(document).ready(function() {
						
						/* init Tab */
						$("div.tabContent").hide();
						$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
						$("div.tabLables > span").click(function(){
							var $targetID = $(this).attr("tabTarget");
							
							$("div.tabLables span").removeClass("active");
							$(this).addClass("active");
							
							$("div.tabContent").not('[id="' + $targetID + '"]').hide();
							$("div.tabContent#" + $targetID).show();
						});
						
					});
					// -->
					//]]>				
				</script>
				
				<div id="List" class="tabContent">
					
					<div class="noticeBlock">
				
						<div class="operation">
							<a class="uiButton" href="<cfoutput>#buildURL('evaluateSystemSetupWizard')#</cfoutput>"><i class="mrs img btnAdd"></i><span class="uiButtonText">新建指标体系</span></a>
						</div>
						
						<h3>现有指标体系</h3>
						<p><span class="img icon16x16 message"></span>下列是系统中已经建立的教学评价指标体系</p>
						<hr/>
					</div>

					<cfif rs_evs.recordCount >
							
							<div class="clearfix">
								<div class="UICardTable">
									<cfloop query="rs_evs">
										<cfset structInsert( passArgs, "ES", rs_evs.es_id, true ) />
										<dl>
											<dt>
												<a href="<cfoutput>#buildURL('evaluateSystemSetupWizardQuestion', passArgs)#</cfoutput>" title="<cfoutput>#stringAdvice.HTMLFormEncode( rs_evs.es_name )#</cfoutput>">
													<em class="questionnaire"><!--imgholder--></em>
													<dd>
														<h3 class="fixed"><cfoutput>#stringAdvice.XHTMLSafeFormat( rs_evs.es_name )#</cfoutput></h3>
														<div><cfoutput>#dictAdvice.getEvaluateModeName( rs_evs.es_model )#</cfoutput></div>
													</dd>
												</a>
											</dt>
										</dl>
									</cfloop>
									<cfset structDelete( passArgs, "ES", false ) />
								</div>
							</div>
							
						<cfelse>

							<div class="systemNotice">
								<p>尚未设置评价指标体系</p>
							</div>
					
					</cfif>
					
				</div>
				
			</div>
		</li>
	</ul>
</div>